
#include <stdio.h>
#include <stdlib.h>
#include "list.h"
 list * listDodajNaKoniec(struct list * lista, int key)
{
    struct list * nowy = ( list *)malloc(sizeof(struct list));
    struct list * cur = lista;
    nowy->key=key;
    nowy->next=0;
    if(!cur)
    {
        lista=nowy;
    }
    else
    {
            while(cur->next)
                cur=cur->next;
            cur->next=nowy;
    }
    return lista;
   /* cur=lista->first;

    while(cur)
    {
        printf("%d %d ",cur,cur->key);
        cur=cur->next;
    }printf("\n");*/
}
void usunListe(struct list * lfirst)
{
    /* struct list * cur = lfirst;
     while(cur)
     {
         free(cur);
        cur=cur->next;

     }
     lfirst=0;*/
}

listUsunOstatni()
{

}
